home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Unix / cvs-960311 / lib / cvs / examples / loginfo < prev    next >
Encoding:
Text File  |  1996-03-11  |  2.3 KB  |  52 lines

  1. #
  2. #ident    "@(#)cvs/examples:$Name:  $:$Id: loginfo,v 1.2 1996/03/11 18:26:43 bbum Exp $"
  3. #
  4. # The "loginfo" file is used to control where "cvs commit" log information
  5. # is sent.  The first entry on a line is a regular expression which is tested
  6. # against the directory that the change is being made to, relative to the
  7. # $CVSROOT.  For the first match that is found, then the remainder of the
  8. # line is a filter program that should expect log information on its standard
  9. # input.
  10. #
  11. # If the repository name does not match any of the regular expressions in the
  12. # first field of this file, the "DEFAULT" line is used, if it is specified.
  13. #
  14. # If the name "ALL" appears as a regular expression it is always used
  15. # in addition to the first matching regex or "DEFAULT".
  16. #
  17. # The filter program may use one and only one "%s" modifier (ala printf).  If
  18. # such a "%s" is specified in the filter program, a brief title is included
  19. # (as one argument, enclosed in single quotes) showing the relative directory
  20. # name and listing the modified file names.
  21. #
  22. # NOTE: contrib/log usage:  (currently requires perl)
  23. #    -d        - turn debugging on....
  24. #    -m mailto    - send mail to "mailto" (multiple -m's permitted)
  25. #    -f logfile    - required arg:  save messages to logfile
  26. #    %s        - may follow other options at the end of the line
  27. #
  28. # NOTE: contrib/log_accum usage:  (currently requires perl)
  29. # (must have 'commit_prep -r' in commitinfo)
  30. #    -d        - turn debugging on....
  31. #    -M modulename    - use this as the module name (necessary for sub-dirs)
  32. #    -m mailto    - send mail to "mailto" (multiple -m's permitted) [optional]
  33. #    -f logfile    - save messages to logfile [optional]
  34. #    %s        - must follow other options at the end of the line
  35. #
  36. # without perl you could do this:
  37. #DEFAULT        (echo ""; who am i; date; cat) >> $CVSROOT/CVSROOT/commitlog
  38. #
  39. # The filter program may use one and only one % modifier (ala printf).  If
  40. # %s is specified in the filter program, a brief title is included (enclosed
  41. # in single quotes) showing the modified file names.
  42. #
  43. # If the repository name does not match any of the regular expressions in this
  44. # file, the "DEFAULT" line is used, if it is specified.
  45. #
  46. # If the name ALL appears as a regular expression it is always used
  47. # in addition to the first matching regex or DEFAULT.
  48. #
  49. #DEFAULT        (echo ""; echo $USER; date; cat) >> $CVSROOT/CVSROOT/commitlog
  50. DEFAULT        $CVSROOT/CVSROOT/log.pl -f $CVSROOT/CVSROOT/commitlog
  51.  
  52.